home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_8.lha
/
6_8
/
6_8a_tst.c
next >
Wrap
Text File
|
1993-08-08
|
801b
|
32 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include "6_8a.c"
ain() {
INT I1 = 9; int i1 = 9;
INT I2; int i2 = 0;
INT I3 = I2; int i3 = i2;
int X = 1, Y = 2; int x = 1, y = 2;
X = I1; x = i1;
I2 = Y; i2 = y;
I2 = I1; i2 = i1;
I2 = 9; i2 = 9;
I2 = I1 + 99; i2 = i1 + 99;
I2 = I1 + I1; i2 = i1 + i1;
I2 *= 5; i2 *= 5;
I2 += 9; i2 += 9;
I2 += I2; i2 += i2;
I2++; i2++;
++I2; ++i2;
cout << "I1=" << int(I1) << "\n";
cout << "i1=" << int(i1) << "\n";
cout << "I2=" << int(I2) << "\n";
cout << "i2=" << int(i2) << "\n";
return 0; // DELETE